<include file="public:top"/>
<div class="container">
	<div class="maincontent">
	    <div>
			<h3>
				<i class="glyphicon glyphicon-home"></i>
				班级首页<small>Class home</small>
			</h3>
			<div class='hr'></div>
			<div class="row">
				<div class="col-md-4">
					<div>
						<h4>最新动态</h4>
						<div class="hr"></div>
					</div>
					<foreach name="latestMove" item="vo">
						<div>
							<div class="pull-left contentPadding">
								<a href="<?php echo Url::moveDetail($vo['m_id'])?>">{{$vo.m_content|msubstr=0,15,'utf-8',false}}</a>
							</div>
							<div class="pull-right contentPadding">
								{{$vo.m_date|date="Y-m-d", ###}}
							</div>
						</div>
						<div class="clear"></div>
							<div class="hr"></div>
					</foreach>
				</div>
				<div class="col-md-8">
					<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
					<!-- Wrapper for slides -->
					<div class="carousel-inner" role="listbox">
					    <?php for($i = 1; $i <= 4; $i++) { ?>
					    <div class="item <?php echo $i == 1 ? 'active' : '';?>">
					        <img src="__PUBLIC__/images/lunbo/<?php echo $i;?>_meitu_<?php echo $i;?>.jpg">
					        <div class="carousel-caption"></div>
					    </div>
					    <?php } ?>
					</div>
					<!-- Controls -->
					<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
					    <span class="glyphicon glyphicon-chevron-left"></span>
					    <span class="sr-only">Previous</span>
					</a>
					<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
					    <span class="glyphicon glyphicon-chevron-right"></span>
					    <span class="sr-only">Next</span>
					</a>
					</div>
				</div>
			</div>
			<div class="clear"></div>
			<div class="row">
			   <div class="col-md-4">
					<div>
						<h4>最新动态</h4>
						<div class="hr"></div>
					</div>
					<foreach name="latestMove" item="vo">
						<div>
							<div class="pull-left contentPadding">
								<a href="<?php echo Url::moveDetail($vo['m_id'])?>">{{$vo.m_content|msubstr=0,15,'utf-8',false}}</a>
							</div>
							<div class="pull-right contentPadding">
								{{$vo.m_date|date="Y-m-d", ###}}
							</div>
						</div>
						<div class="clear"></div>
							<div class="hr"></div>
					</foreach>
					<empty name='latestMove'>
						<h5>目前还没有动态！</h5>
					</empty>
				</div>
				<div class="col-md-4">
					<div>
						<h4>最新留言</h4>
						<div class="hr"></div>
					</div>
					<foreach name="latestLeave" item="vo">
						<div>
							<div class="pull-left contentPadding">
								<a href="<?php echo Url::messageDetail($vo['le_id'])?>">{{$vo.le_content|msubstr=0,15,'utf-8',false}}</a>
							</div>
							<div class="pull-right contentPadding">
								{{$vo.le_date|date="Y-m-d", ###}}
							</div>
						</div>
						<div class="clear"></div>
						<div class="hr"></div>
					</foreach>
					<empty name='latestLeave'>
						<h5>目前还没有发表留言！</h5>
					</empty>
				</div>
				<div class="col-md-4">
					<div>
						<h4>最新文章</h4>
						<div class="hr"></div>
					</div>
					<foreach name="latestArticle" item="vo">
						<div>
							<div class="pull-left contentPadding">
								<a href="<?php echo Url::articleDetail($vo['ar_id'])?>">{{$vo.ar_content|msubstr=0,15,'utf-8',false}}</a>
							</div>
							<div class="pull-right contentPadding">
								{{$vo.ar_date|date="Y-m-d", ###}}
							</div>
						</div>
						<div class="clear"></div>
						<div class="hr"></div>
					</foreach>
					<empty name='latestArticle'>
						<h5>目前还没有发表文章！</h5>
					</empty>
				</div>
			</div>
			<div class="clear"></div>
		</div>
        <div class="clear"></div>
        <div>
        	<h4>最近访问者：</h4>
        	<div class="hr"></div>
        	<div class="row">
        	    <foreach name="loginUsers" item="vo">
			        <div class="col-xs-5 col-md-1">
			            <a href="#" class="thumbnail head-thumbnail" title="{{$vo['u_name']}}">
			                <img src="<?php echo ImageModel::headImage($vo['u_image'], ImageModel::IMG_SMALL)?>" data-src="holder.js/100%x80" alt="<?php echo $vo['u_name']?>">
			            </a>
			        </div>
			    </foreach>
			</div>
        	<div class="hr"></div>
        </div>
	</div>
</div>
<include file="public:footer"/>
